package com.woniu.execption.goodstype;

import lombok.AllArgsConstructor;


@AllArgsConstructor
public enum GoodsTypeExceptionCode {
    GOODSTYPE_NOT_EXITS(20001,"商品类型不存在"),
    GOODSTYPE_PARENTID_NOT_EXITS(20002,"商品类型父id不存在"),
    GOODSTYPE_IS_DELETE(20003,"商品类型已被删除"),
    GOODSTYPE_STATE_ERROR(20004,"商品类型状态异常"),

    GOODSTYPE_NOT_PARENT(20005,"该商品没有父类别");
    ;
    private Integer code;
    private String messages;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessages() {
        return messages;
    }

    public void setMessages(String messages) {
        this.messages = messages;
    }
}
